package com.example.lib_core.factory;

import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;

import com.example.lib_core.mvvm.BaseModel;
import com.example.lib_core.mvvm.BaseReposter;

public class FragFactory implements ViewModelProvider.Factory {
    @NonNull
    @Override
    public <T extends ViewModel> T create(@NonNull Class<T> modelClass) {
        return (T) new FragViewModel(new BaseReposter(new BaseModel()));
    }
}
